package com.lwlk.util.functional;

@FunctionalInterface
public interface TypeTransformer<From, To> extends Function1<To, From> {

    default <Another> TypeTransformer<From, Another> then(final TypeTransformer<To, Another> nextFormer) {
        return (e) -> nextFormer.call(call(e));
    }
}
